﻿<Page x:Class="SweetWeather.View.CalendarPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:properties="clr-namespace:SweetWeather.Properties"
      mc:Ignorable="d"
	Title="CalendarPage">

    <Canvas Background="Transparent" Width="970">
        <Rectangle Fill="Gray" Opacity="0.3" Width="930" Height="480" Canvas.Left="18" Canvas.Top="10">
        </Rectangle>
        <StackPanel  Width="930" Height="480" Opacity ="1" Margin="18,10,0,0">
            <WrapPanel Width="930" Height="50" Margin="10,20,0,0">
                <Button Background="Transparent" BorderThickness="0" Focusable="False" Cursor="Hand" Name="PreviousMonthButton" Width="40" Height="50" HorizontalAlignment="Left">
                    <Path Data="F1M646.688,13.5518L646.783,13.4593 646.965,13.639 668.383,35.0583 689.459,35.0583 665.155,10.751 657.503,3.10126 657.323,2.92023 664.876,-4.63837 689.184,-28.9417 668.109,-28.9417 646.688,-7.52637 636.15,3.01398 646.688,13.5518z" Stretch="Uniform" Fill="White" Width="25" Height="25" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                    </Path>
                </Button>
                <TextBlock FontSize="50" Name="lblTime" Text="2014年1月" Width="820" Style="{StaticResource TextBlockStyle}" Margin="10,-10,0,0"/>
                <Button Background="Transparent"  BorderThickness="0" Focusable="False" Cursor="Hand" Name="NextMonthButton" Width="40" Height="50" HorizontalAlignment="Right">
                    <Path Data="F1M568.254,-7.43524L568.159,-7.34277 567.977,-7.52246 546.559,-28.9417 525.484,-28.9417 549.787,-4.63446 557.439,3.01532 557.619,3.19629 550.067,10.7549 525.758,35.0583 546.834,35.0583 568.254,13.6429 578.792,3.10254 568.254,-7.43524z" Stretch="Uniform" Fill="White" Width="25" Height="25" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                    </Path>
                </Button>
            </WrapPanel>
            <StackPanel Height="40" Width="870" Name="stackPanel1" VerticalAlignment="Top" Orientation="Horizontal" Margin="20,0,40,0">
                <Label Width="125" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="125" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="126" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="126" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="126" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="126" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
                <Label Width="126" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" FontSize="20" FontWeight="Bold"></Label>
            </StackPanel>
            <ListBox Height="340" Background="Transparent" BorderThickness="0" Margin="20,10,20,10" Name="CalendarListBox" 
                 VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Auto" 
                 FontSize="15" VerticalAlignment="Bottom">
                <ListBox.ItemContainerStyle>
                    <Style>
                        <Setter Property="ListBoxItem.Background" Value="DarkGray"/>
                        <Setter Property="ListBoxItem.Height" Value="67"/>
                        <Setter Property="ListBoxItem.Margin" Value="1,0,0,0.5"/>
                    </Style>
                </ListBox.ItemContainerStyle>
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <UniformGrid Name="CalendarDisplayUniformGrid" Background="Transparent" Margin="0" 
                                        Columns="7" Rows="6"
                                        HorizontalAlignment="Stretch"
                                         VerticalAlignment="Stretch">
                        </UniformGrid>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
            </ListBox>

        </StackPanel>
    </Canvas>
</Page>
